On Two Forms of Structural Recursion

نویسندگان

  • Dan Suciu
  • Limsoon Wong
چکیده

We investigate and compare two forms of recursion on sets for querying nested collections. The rst one is called sri and it corresponds to sequential processing of data. The second one is called sru and it corresponds to data-parallel processing. A uniform rst-order translation from sru into sri was known from previous work. The converse translation is by necessity more diicult and we have obtained three main results concerning it. First, we exhibit a uniform translation of sri queries into sru queries over the nested relational algebra. We observe that this translation maps PTIME algorithms into exponential-space queries. The second result proves that any uniform translation of sri queries into sru queries over the nested relational algebra must map some PTIME queries into exponential-space ones. In fact, in the presence of certain external functions, we provide a PTIME sri query for which any equivalent sru query requires exponential space. Thus, as a mechanism for implementing algorithms over complex objects, sru is strictly less powerful than sri. This ineeciency is in contrast to a previous result that uniformly translates eecient sri programs into eecient sru programs, but over a language with higher-order functions. Our third result proves that, in the absence of external functions, higher-order functions do not add more expressive power to the nested relational algebra with sri or sru. However, elimination of higher-order functions cannot be done uniformly, because in the presence of certain external functions, more expressive power can be gained from the higher-order functions. These three results suggest that higher-order functions could be useful in query languages.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

α-Structural Recursion and Induction

How best to reconcile syntactical issues to do with name-binding and α-conversion with a structural approach to semantics? Specifically: improved forms of structural recursion and structural induction for syntactical structures. Compositionality is crucial in [programming language] semantics —it's preferable to give meaning to program constructions rather than just to whole programs.

متن کامل

Increment Boundedness and Nonrecursive Incremental Evaluation of Datalog Queries

Given a recursive (datalog) query, the nonrecursive incremental evaluation approach uses nonrecursive (datalog) programs to compute the difference of the answers to the query against successive databases between updates. The mechanism used in this approach is called a “First-Order Incremental Evaluation System” (FOIES). We show that for two large classes of datalog queries, called “generalized ...

متن کامل

UnQL : A Query Language and Algebra for Semistructured DataBased on Structural

This paper presents structural recursion as the basis of the syntax and semantics of query languages for semistructured data and XML. We describe a simple and powerful query language based on pattern matching and show that it can be expressed using structural recursion, which is introduced as a top-down, recursive function, similar to the way XSL is deened on XML trees. On cyclic data, structur...

متن کامل

Effect of different land use on Potassium forms and some soil properties in Kohgiluyeh and Boyer-Ahmad Province, Southwest Iran

The pasture and forest land use change to agricultural use can effect on many properties of the soil and its productivity. The present research aims to investigate various forms of K (soluble, exchangeable, non-exchangeable, and structural forms) and some soil properties in different land use of three areas including Choram, Kakan and Bahmaei in Kohgiluyeh and Buyer-Ahmad Province. Four profile...

متن کامل

Introducing a Lightweight Structural Model via Simulation of Vernacular “Pa Tu Pa” Arch

The knowledge of Iranian vernacular structures is based on geometry, and there is a possibility of recreating such structural patterns aimed at producing movable structures. The purpose of this research was to utilize the patterns of vernacular structures to provide a lightweight structural model. The questions raised included how to create various forms based on the structural history of any r...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995